package com.aspose.cells;

class zblr extends zcj {
   private float i = 0.0F;
   private float j = 0.0F;

   zblr(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   void a() {
      float var1 = this.e.h();
      float var2 = this.e.i();
      float var3 = this.e.f();
      float var4 = this.e.g();
      new com.aspose.cells.b.a.b.zq(var1, var2, var3, var4);
      com.aspose.cells.b.a.b.zm var6 = zbul.a(this.e.m());
      com.aspose.cells.b.a.b.a.ze var7 = this.a(var1, var2, var3, var4, 0);
      com.aspose.cells.b.a.b.zc var8 = zbul.a(this.e.l(), var7);
      com.aspose.cells.b.a.b.a.ze var9 = this.a(var1, var2, var3, var4, 1);
      com.aspose.cells.b.a.b.zc var10 = zbul.a(this.e.l(), var9);
      com.aspose.cells.b.a.b.a.ze var11 = this.a(var1, var2, var3, var4, 2);
      com.aspose.cells.b.a.b.zc var12 = zbul.a(this.e.l(), var11);
      com.aspose.cells.b.a.b.a.ze var13 = this.a(var1, var2, var3, var4, 3);
      com.aspose.cells.b.a.b.zc var14 = zbul.a(this.e.l(), var13, 0.8F, 0.0F);
      com.aspose.cells.b.a.b.a.ze var15 = this.a(var1, var2, var3, var4, 4);
      com.aspose.cells.b.a.b.zc var16 = zbul.a(this.e.l(), var15, 0.8F, 0.0F);
      if (!this.e.l().a()) {
         this.a.a(var8, var7);
         this.a.a(var10, var9);
         this.a.a(var12, var11);
         this.a.a(var14, var13);
         this.a.a(var16, var15);
      }

      if (!this.e.m().a()) {
         this.a.a(var6, var7);
         this.a.a(var6, var9);
         this.a.a(var6, var11);
         this.a.a(var6, var13);
         this.a.a(var6, var15);
      }

      super.b();
   }

   com.aspose.cells.b.a.b.a.ze a(float var1, float var2, float var3, float var4, int var5) {
      com.aspose.cells.b.a.b.a.ze var6 = new com.aspose.cells.b.a.b.a.ze();
      if (this.e.l.a.size() == 2) {
         this.j = this.e.g() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
         this.i = this.e.f() / 3.0F * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
      } else if (this.e.l.a.size() == 1) {
         if (((zak)this.e.l.a.get(0)).b() == 327) {
            this.j = this.e.g() * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
         } else {
            this.j = this.e.g() * 5452.0F / 21600.0F;
         }

         if (((zak)this.e.l.a.get(0)).b() == 328) {
            this.i = this.e.f() / 3.0F * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
         } else {
            this.i = this.e.f() / 3.0F * 18753.0F / 21600.0F;
         }
      } else {
         this.j = this.e.g() * 5452.0F / 21600.0F;
         this.i = this.e.f() / 3.0F * 18753.0F / 21600.0F;
      }

      float var7 = var3 / 2.0F - this.i;
      float var8 = var4 - this.j;
      float var9 = var4 - var8;
      if (var5 == 0) {
         var6.a(var1 + var7, var2 + var8, 0.0555F * var3, var9 / 2.0F, 180.0F, 90.0F);
         var6.b(var1 + var7 + 0.0277F * var3, var2 + var8, var1 + var3 - 0.0277F * var3 - var7, var2 + var8);
         var6.a(var1 + var3 - 0.0555F * var3 - var7, var2 + var8, 0.0555F * var3, var9 / 2.0F, -90.0F, 90.0F);
         var6.j();
         var6.b(var1 + var3 - var7, var2 + var4 - 3.0F * var9 / 4.0F, var1 + var3 - var7, var2 + var9 / 4.0F);
         var6.a(var1 + var3 - 0.0555F * var3 - var7, var2, 0.0555F * var3, var9 / 2.0F, 0.0F, -90.0F);
         var6.b(var1 + var3 - var7 - 0.0277F * var3, var2, var1 + var7 + 0.0277F * var3, var2);
         var6.a(var1 + var7, var2, 0.0555F * var3, var9 / 2.0F, 270.0F, -90.0F);
         var6.b(var1 + var7, var2 + var9 / 4.0F, var1 + var7, var2 + var4 - 3.0F * var9 / 4.0F);
      } else if (var5 == 1) {
         var6.b(var1, var2 + var9, var1 + var7, var2 + var9);
         var6.b(var1 + var7, var2 + var9, var1 + var7, var2 + var4 - 3.0F * var9 / 4.0F);
         var6.a(var1 + var7, var2 + var8, 0.0555F * var3, var9 / 2.0F, 180.0F, -90.0F);
         var6.b(var1 + var7 + 0.0277F * var3, var2 + var4 - var9 / 2.0F, var1 + var7 + 0.1F * var3, var2 + var4 - var9 / 2.0F);
         var6.a(var1 + var7 + 0.0722F * var3, var2 + var8 + var9 / 2.0F, 0.0555F * var3, var9 / 2.0F, 270.0F, 180.0F);
         var6.b(var1, var2 + var4, var1 + 0.125F * var3, var2 + var9 + var8 / 2.0F);
         var6.b(var1 + 0.125F * var3, var2 + var9 + var8 / 2.0F, var1, var2 + var9);
         var6.i();
      } else if (var5 == 2) {
         var6.b(var1 + var3, var2 + var9, var1 + var3 - var7, var2 + var9);
         var6.b(var1 + var3 - var7, var2 + var9, var1 + var3 - var7, var2 + var4 - 3.0F * var9 / 4.0F);
         var6.a(var1 + var3 - 0.0555F * var3 - var7, var2 + var8, 0.0555F * var3, var9 / 2.0F, 0.0F, 90.0F);
         var6.a(var1 + var3 - var7 - 0.1277F * var3, var2 + var8 + var9 / 2.0F, 0.0555F * var3, var9 / 2.0F, 270.0F, -180.0F);
         var6.b(var1 + var3, var2 + var4, var1 + 0.875F * var3, var2 + var9 + var8 / 2.0F);
         var6.b(var1 + 0.875F * var3, var2 + var9 + var8 / 2.0F, var1 + var3, var2 + var9);
         var6.i();
      } else if (var5 == 3) {
         var6.a(var1 + var7, var2 + var8, 0.0555F * var3, var9 / 2.0F, 270.0F, -180.0F);
         var6.a(var1 + var7 + 0.0722F * var3, var2 + var8 + var9 / 2.0F, 0.0555F * var3, var9 / 2.0F, 270.0F, 90.0F);
         var6.j();
         var6.b(var1 + var7 + 0.1277F * var3, var2 + var4 - var9 / 4.0F, var1 + var7 + 0.1277F * var3, var2 + var8);
         var6.b(var1 + var7 + 0.1277F * var3, var2 + var8, var1 + var7 + 0.0277F * var3, var2 + var8);
      } else {
         var6.a(var1 + var3 - 0.0555F * var3 - var7, var2 + var8, 0.0555F * var3, var9 / 2.0F, 270.0F, 180.0F);
         var6.a(var1 + var3 - var7 - 0.1277F * var3, var2 + var8 + var9 / 2.0F, 0.0555F * var3, var9 / 2.0F, 270.0F, -90.0F);
         var6.j();
         var6.b(var1 + var3 - var7 - 0.1277F * var3, var2 + var4 - var9 / 4.0F, var1 + var3 - var7 - 0.1277F * var3, var2 + var8);
         var6.b(var1 + var3 - var7 - 0.1277F * var3, var2 + var8, var1 + var3 - var7 - 0.0277F * var3, var2 + var8);
      }

      return var6;
   }
}
